Skip to content

Bump the go-minor-and-patch group across 1 directory with 5 updates - #15

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/go-minor-and-patch-f9634be72c
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/go-minor-and-patch-f9634be72c

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown

Bumps the go-minor-and-patch group with 5 updates in the / directory:

Package From To
github.com/golang-migrate/migrate/v4 4.18.3 4.20.1
github.com/jackc/pgx/v5 5.11.0 5.13.0
github.com/prometheus/client_golang 1.23.2 1.25.0
github.com/redis/go-redis/v9 9.23.0 9.24.0
golang.org/x/crypto 0.58.0 0.59.0

Updates github.com/golang-migrate/migrate/v4 from 4.18.3 to 4.20.1

Release notes

Sourced from github.com/golang-migrate/migrate/v4's releases.

v4.20.1

[!NOTE] This release is the immediate mitigation of the CI / release failure in v4.20.0, to distribute the latest version to all registries.

What's Changed

Full Changelog: golang-migrate/migrate@v4.20.0...v4.20.1

v4.20.0

[!WARNING] Due to a bug in the release workflow, GoReleaser failed and v4.20.0 was not published to Docker or other package registries. We did not want to re-tag (due to the possible impacts of that action), so we will attempt to backfill this shortly.

To mitigate this in the immediate term, v4.20.1 is being released with the patched workflow and distributed to all registries.

What's Changed

New Contributors

Full Changelog: golang-migrate/migrate@v4.19.1...v4.20.0

v4.19.1

What's Changed

... (truncated)

Commits
  • 504568a ci: fix GoReleaser build matrix (#1434)
  • 9429a3c test: update PostgreSQL test matrix (#1388)
  • 276d060 test: add MSSQL 2025 to test matrix (#1390)
  • 10173f0 perf(source): build migrations index lazily to avoid quadratic startup (#1424)
  • 5bcd008 fix(source/aws_s3): paginate ListObjects to load >1000 migrations (#1412)
  • 15c4690 build(deps): bump the go_modules group across 1 directory with 3 updates (#1429)
  • 3eac5d5 fix(mongodb): replace deprecated DecodeBytes (#1432)
  • 01a9643 build: bump alpine docker image to 3.24 (#1431)
  • 7724986 spanner: Update spansql statement parser version (#1398)
  • 18966c7 test(yugabyte): run YugabyteDB tests with supported versions (#1396)
  • Additional commits viewable in compare view

Updates github.com/jackc/pgx/v5 from 5.11.0 to 5.13.0

Changelog

Sourced from github.com/jackc/pgx/v5's changelog.

5.13.0 (November 11, 2026)

This release adds automatic client certificate reloading and temporal precision metadata for database/sql. It also fixes a panic on malformed server responses, unsafe retries after connection failures, and range encoding. See Changes for client certificate configuration behavior that may affect existing applications.

Security Fixes

  • Panic in Rows.Values on malformed server responses (GHSA-w9rp-vfrh-q8vv). A server response containing fewer row values than declared fields could cause an index-out-of-range panic in Rows.Values. It now returns an error and closes the rows when the counts differ, including when there are extra values, matching Rows.Scan validation.

Features

  • pgconn: reload client certificates and keys configured through sslcert and sslkey for each TLS certificate request, allowing new connections to pick up rotated credentials without recreating the configuration or restarting the application. Files are still validated during configuration parsing. Relative paths retain their parse-time directory, and reloads follow symlinks (Erin Shepherd)
  • stdlib: expose fractional seconds precision for timestamp, timestamptz, time, timetz, and interval through ColumnTypePrecisionScale and database/sql.ColumnType.DecimalSize. These return precision 0, the fractional seconds precision as scale, and ok=true. The scale defaults to 6 when no fractional seconds precision is declared; precision 0 means numeric precision is not applicable (Danny Xu)

Changes

  • pgconn: file-backed client certificates are no longer stored in the parsed TLSConfig.Certificates slice. Setting TLSConfig.Certificates (including a non-nil empty slice) or TLSConfig.GetClientCertificate overrides automatic reloading. Replacing TLSConfig, including with a direct TLSConfig.Clone, discards the file-backed certificate settings; use pgconn.Config.Copy to preserve them when copying a configuration. Certificate and key files must remain readable for subsequent TLS certificate requests. Encrypted keys reuse the password resolved during configuration parsing; GetSSLPassword is not called again on reload.

Bug Fixes

  • pgconn: do not mark a connection-closed error encountered while receiving a response as safe to retry, since the request may already have reached the server. This prevents database/sql from automatically repeating a statement that may already have executed. The error still supports errors.Is(err, pgconn.ErrConnClosed) (Aayush Shah)
  • pgconn: skip sending a cancel request when a connection fails during startup, avoiding an unnecessary second connection attempt (felipe stival)
  • pgconn: accept unencrypted combined certificate/key PEM files with the certificate before the key, as well as key-first files (Erin Shepherd)
  • pgtype: encode Range[any] values returned by RangeCodec.DecodeValue and Rows.Values in both binary and text formats, allowing decoded ranges and multiranges to be reused as query arguments or in CopyFrom (waw666waw666)
  • stdlib: report ok=false for the precision and scale of unconstrained numeric columns instead of bogus values (Danny Xu)
  • stdlib: report math.MaxInt64 for the lengths of unconstrained varchar, bpchar, and varbit columns instead of negative lengths (PerryLink)

... (truncated)

Commits
  • 1e38d71 Update changelog for v5.13.0
  • e2bb010 Fix Rows.Values panic on mismatched field counts
  • 5b0fd94 Merge pull request #2709 from waw666waw666/fix-range-any-encode
  • 427f50d Merge pull request #2715 from v0idpwn/pgconn-no-cancel-on-failed-connect
  • 86b4411 Merge pull request #2713 from ksamirdev/fix-append-rows-by-name-bench
  • a3b88dc Merge pull request #2714 from PerryLink/stdlib-column-type-length-unbounded
  • 2f429e5 Merge pull request #2710 from dajiaohuang/codex/2705-pingtimeout-docs
  • 85c3e62 stdlib: close rows in precision and scale test
  • 4f41feb stdlib: clarify zero precision for temporal types
  • 22ccfd1 stdlib: document temporal precision and scale metadata
  • Additional commits viewable in compare view

Updates github.com/prometheus/client_golang from 1.23.2 to 1.25.0

Release notes

Sourced from github.com/prometheus/client_golang's releases.

v1.25.0

⚠️ This release raises the minimum required Go version to 1.26 and includes breaking API changes in api/prometheus/v1 (see the [CHANGE] entries below). ⚠️

1.25.0 / 2026-10-07

  • [CHANGE] Minimum required Go version is now 1.26, only the two latest Go versions (1.26 and 1.27) are supported from now on. #2138
  • [CHANGE] api/prometheus/v1: Query, QueryRange, Series, LabelNames, and LabelValues now return Infos annotations in addition to Warnings, matching the Prometheus server's info annotations. This changes the signatures of these methods and of api.Client's Do/DoGetFallback; custom API client implementations must be updated. #1963
  • [CHANGE] api/prometheus/v1: Rework TSDBBlocks result types to align with the Prometheus server's tsdb.BlockMeta: TSDBBlocksResult now contains Blocks []TSDBBlockMeta directly instead of mirroring the full API envelope, nested types are renamed (TSDBBlockMeta, TSDBBlockStats, TSDBBlockMetaCompaction), stat fields are uint64 with omitempty tags, and the optional compaction parents field is included. #1928
  • [FEATURE] testutil: Add GatherAndFormat to encode a subset of metrics from a Gatherer. #2091
  • [FEATURE] promhttp: Add HandlerOpts.AcceptedFormats to customize the formats negotiated from the incoming Accept header, enabling opt-in to experimental formats such as OpenMetrics 2.0 without changing default negotiation. #2146
  • [ENHANCEMENT] promhttp: Negotiated metrics responses now include a Vary header. #2142
  • [ENHANCEMENT] prometheus: Regenerate the default runtime collector metrics for Go 1.25 and Go 1.26. #2090, #2095
  • [ENHANCEMENT] testutil: Finalize OpenMetrics output in GatherAndFormat and CollectAndFormat (terminating # EOF). #2125
  • [BUGFIX] api: Match complete URL path placeholders only; a :foo argument no longer substitutes inside :foobar. #2136
  • [BUGFIX] exp/api/remote: Reset the pooled buffer before generic proto marshaling, preventing corrupted remote-write payloads. #2139
  • [BUGFIX] testutil/promlint: Fix "mibi" unit prefix to "mebi". #2135

What's Changed

... (truncated)

Changelog

Sourced from github.com/prometheus/client_golang's changelog.

1.25.0 / 2026-10-07

  • [CHANGE] Minimum required Go version is now 1.26, only the two latest Go versions (1.26 and 1.27) are supported from now on. #2138
  • [CHANGE] api/prometheus/v1: Query, QueryRange, Series, LabelNames, and LabelValues now return Infos annotations in addition to Warnings, matching the Prometheus server's info annotations. This changes the signatures of these methods and of api.Client's Do/DoGetFallback; custom API client implementations must be updated. #1963
  • [CHANGE] api/prometheus/v1: Rework TSDBBlocks result types to align with the Prometheus server's tsdb.BlockMeta: TSDBBlocksResult now contains Blocks []TSDBBlockMeta directly instead of mirroring the full API envelope, nested types are renamed (TSDBBlockMeta, TSDBBlockStats, TSDBBlockMetaCompaction), stat fields are uint64 with omitempty tags, and the optional compaction parents field is included. #1928
  • [FEATURE] testutil: Add GatherAndFormat to encode a subset of metrics from a Gatherer. #2091
  • [FEATURE] promhttp: Add HandlerOpts.AcceptedFormats to customize the formats negotiated from the incoming Accept header, enabling opt-in to experimental formats such as OpenMetrics 2.0 without changing default negotiation. #2146
  • [ENHANCEMENT] promhttp: Negotiated metrics responses now include a Vary header. #2142
  • [ENHANCEMENT] prometheus: Regenerate the default runtime collector metrics for Go 1.25 and Go 1.26. #2090, #2095
  • [ENHANCEMENT] testutil: Finalize OpenMetrics output in GatherAndFormat and CollectAndFormat (terminating # EOF). #2125
  • [BUGFIX] api: Match complete URL path placeholders only; a :foo argument no longer substitutes inside :foobar. #2136
  • [BUGFIX] exp/api/remote: Reset the pooled buffer before generic proto marshaling, preventing corrupted remote-write payloads. #2139
  • [BUGFIX] testutil/promlint: Fix "mibi" unit prefix to "mebi". #2135

1.24.1 / 2026-07-23

  • [BUGFIX] promhttp: Fix panic on requests with nil URL. #2065

1.24.0 / 2026-07-20

  • [CHANGE] Minimum required Go version is now 1.25, only the two latest Go versions (1.25 and 1.26) are supported from now on. #1862
  • [CHANGE] prometheus: Name validation now always uses the UTF-8 scheme instead of the deprecated model.NameValidationScheme global. Default behavior is unchanged; code that set NameValidationScheme = LegacyValidation no longer gets legacy enforcement at metric, label, and push-grouping construction. #2051
  • [CHANGE] api/prometheus/v1: Support matchers (matches[] parameter) in Rules method (Rules(ctx context.Context, matches []string) (RulesResult, error)). #1843
  • [CHANGE] api/prometheus/v1: Refactor LabelNames method to return model.LabelNames instead of []string for consistency across the API. #1850
  • [CHANGE] exp/api/remote: Simplify Store interface, rename Handler to WriteHandler, and encapsulate write response handling. #1855
  • [FEATURE] prometheus: Add new Go 1.26 runtime metrics (/sched/goroutines-created:goroutines, /sched/goroutines/not-in-go:goroutines, /sched/goroutines/runnable:goroutines, /sched/goroutines/running:goroutines, /sched/goroutines/waiting:goroutines, /sched/threads/total:threads). #1942
  • [FEATURE] prometheus: Add WithUnit(unit string) option and explicit OpenMetrics unit support in CounterOpts, GaugeOpts, SummaryOpts, and HistogramOpts. #1392
  • [FEATURE] prometheus: Expose descriptor construction error through public Err() method on Desc. #1902
  • [FEATURE] promhttp: Add opt-in HandlerOpts.CoalesceGather to deduplicate concurrent Gather calls so overlapping scrapes share one collection cycle, preventing goroutine pile-up when the scrape rate outpaces collection time. #1969
  • [FEATURE] promhttp: HTTP handlers created by promhttp package now support metrics filtering by providing one or more name[] query parameters. The default behavior when none are provided remains the same, returning all metrics. #1925
  • [FEATURE] api/prometheus/v1: Add query formatting endpoint support (/format_query) and FormatQuery(ctx context.Context, query string) (string, error) method. #1846, #1856
  • [FEATURE] api/prometheus/v1: Add support for /status/tsdb/blocks endpoint via TSDBBlocks(ctx context.Context) ([]TSDBBlock, error) method. #1896
  • [FEATURE] exp/api/remote: Export BackoffConfig to allow customization when using WithAPIBackoff. #1895
  • [FEATURE] exp/api/remote: Add RetryCallBack to allow custom logging or handling on retry attempts in the remote write client. #1888, #1890
  • [ENHANCEMENT] prometheus/collectors/version: Allow specifying custom labels when registering the version collector. #1860
  • [ENHANCEMENT] api: Use cloned http.DefaultTransport when constructing default HTTP clients to prevent accidental mutations of shared global transport state. #1885
  • [BUGFIX] prometheus: Recover from collector panics during Gather() and return an error instead of crashing the process. #1961
  • [BUGFIX] prometheus: Fix cpu-seconds unit suffix handling for metric go_cpu_classes_gc_mark_assist_cpu_seconds. #1991
  • [BUGFIX] promhttp: InstrumentHandlerDuration and InstrumentHandlerCounter no longer panic when given an observer/counter that does not implement ExemplarObserver/ExemplarAdder (e.g. a SummaryVec). The exemplar is dropped and the value is recorded via the plain Observe/Add path, matching the safe-cast already used by Timer.ObserveDurationWithExemplar. #2005
  • [BUGFIX] api/prometheus/v1: Fall back to GET requests when POST requests return 403 Forbidden or method not allowed. #2030
  • [BUGFIX] api: Respect context cancellation inside httpClient.Do. #1971
  • [BUGFIX] exp/api/remote: Fix compression buffer pooling where compressed buffers were released prematurely, causing corrupted remote-write payloads. #1889
  • [BUGFIX] exp/api/remote: Reject malformed snappy payloads declaring huge decoded sizes. Enforce a 32MB decoded-size limit to prevent OOM from oversized remote-write requests. #1917
  • [BUGFIX] exp/api/remote: Ensure remote write v2 headers cannot be returned on v1 requests. #1927
Commits

Updates github.com/redis/go-redis/v9 from 9.23.0 to 9.24.0

Release notes

Sourced from github.com/redis/go-redis/v9's releases.

9.24.0

This is a minor release. It contains everything from 9.24.0-beta.1 and 9.24.0-beta.2, so these notes cover the full 9.23.0 → 9.24.0 upgrade. The release adds:

  • Redis 8.12 support: set member expiration, ZMOVE, BITRANGEINTARRAY, CF.COMPACT, scalar-quantized HNSW, BLESS and more, tested against Redis 8.12.0.
  • The experimental MultiDB client for Active-Active (Redis Enterprise) failover.
  • Metadata-driven cluster routing and client-side caching (CSC) eligibility that come from the COMMAND metadata.
  • CSC OPT-IN / OPT-OUT tracking modes, CSC on ClusterClient, and CSC with EphemeralConn.
  • A per-client OTelRecorder, MultiDB metrics in redisotel-native, and much less OpenTelemetry cost on the hot path.
  • New full-duplex options (FullDuplexPipes, PipelineMinIdleConns) and a cluster recovery fix for full-duplex sessions.
  • An opt-in idle connection reaper, ACLGetUser, ClusterSlotStats and the Redis 8.10 BACKUP commands.
  • Many fixes for connections, cluster routing, authentication, reply parsing, and the search, JSON and probabilistic commands.

🚀 Highlights

Redis 8.12 support

This release adds the new commands and options of Redis 8.12 and runs its tests against Redis 8.12.0 (#4404).

  • Set member expiration: SExpire, SPExpire, SExpireAt, SPExpireAt (each with WithArgs), STTL, SPTTL, SExpireTime, SPExpireTime, SPersist, SAddEX and SAddEXWithArgs (#4165) by @​ndyakov.
  • Sorted sets and bitmaps: ZMOVE, BZMOVE and ZMOVEMEMBER (#4289), and BITRANGEINTARRAY (#4242) by @​ndyakov.
  • Probabilistic and search: CF.COMPACT as CFCompact (#4243) by @​ndyakov. CELL_SIZE for CMS.INITBYDIM and CMS.INITBYPROB (CMSInitByDimCellSize, CMSInitByProbCellSize) (#4023), and scalar-quantized HNSW indexes in FT.CREATE with the two new FT.INFO fields (#4077) by @​vlady-kotsev. RERANK for FT.HYBRID, the BITRANGEINTARRAY options and the new command metadata (#4277) by @​ndyakov.
  • BLESS: BLESS GET, BLESS SET, BLESS CLEAR and BLESS SCAN for the NO-EVICT flag (#4041) by @​vlady-kotsev. BlessScan is node-local: scan each master of a cluster or ring.

MultiDB client (experimental)

NewMultiDBClient routes commands to one active database out of several standalone or cluster members (e.g. Redis Enterprise Active-Active) and fails over based on circuit breakers, health checks and a weight-based failover strategy, with auto-fallback to higher-weight members. The multidb package adds ping and lag-aware health checks and probe policies. See example/multidb (#3954) by @​ndyakov. Defaults:

  • MultiDB owns retries: CommandRetries (0 = 2, -1 = none) retries on the database active at each attempt, and every attempt is counted by the breaker and failure detector. Standalone members get no retries of their own (MaxRetries 0 becomes -1); an explicit MaxRetries is kept.
  • Health checks: HEALTHY_ALL, 3 probes 500ms apart per check, honoring multidb.WithProbes / WithDelay / WithTimeout; HealthCheckTimeout (3s) caps the pass. Probes that cannot fit it are rejected at construction and by AddDatabase. Under the default policy, SetActiveDatabase and ProbeTargetBeforeFailover use one probe per check.
  • Startup: InitialDBStateMajorityAvailable needs half the members, rounded up (1 of 2). A failed start matches ErrInsufficientHealthyDatabases; with no healthy member it also matches ErrPermanentlyNotAvailable.
  • Weights are in (0, 1] (0 = 1.0); -1 disables a member. The last enabled member cannot be disabled.
  • The default failure detector (1000 failures and 10% within 2s) is set with FailureDetectorConfig, whose fields are used as given; start from DefaultMultiDBFailureDetectorConfig().
  • redisotel-native reports MultiDB events (failover, active database change, circuit breaker state change, health check) in a new multidb metric group, MetricGroupFlagMultiDB, which MetricGroupAll includes (#4007) by @​ndyakov.
  • A member ProcessHook that returns nil without calling next is no longer counted as a healthy database response (#4271), and a local result of a member hook in a cluster pipeline is kept when another node fails (#4279) by @​harshitdeora. Full-duplex outcomes are recorded in the failure window after the active member is selected again (#4283) by @​xixi-box.

Experimental: the MultiDB API can change in a minor release. User hooks and health checks must not call MultiDB control methods or Close.

Metadata-driven cluster routing

Cluster routing and CSC use the same resolved COMMAND record for each command, so flags, key positions and policies cannot drift between two metadata sources (#3960, #4093) by @​ofekshenawa.

  • Existing default routing and the cluster-wide DBSize, ScriptLoad, ScriptFlush and ScriptExists helpers are preserved. Install NewCommandMetadataResolver() or client.NewDynamicResolver() with SetCommandInfoResolver to enable metadata-based fan-out and aggregation. CommandMetadata configuration alone does not enable them. Cross-slot fan-out is not atomic.
  • With metadata routing enabled, cross-slot MGET follows redirects for each affected slot during resharding instead of returning a missing value for a key that moved. Successful slot groups are not replayed, and fan-out replies that contain MOVED or ASK refresh the topology for later commands.
  • Explicit pipelines and transactions keep node-local execution; ordered AsyncAutoPipeline rejects fan-out before dispatch. Automatic fan-out is available through the blocking face or unordered half-duplex mode. SCAN, INFO and known diagnostics stay node-local.
  • Numeric sum/min/max fan-out keeps integer replies as exact int64 results, including raw Do results; integer overflow returns an error. Aggregates with floating-point replies return float64.
  • Resolved command key specifications take precedence over SetFirstKeyPos. Commands missing from the snapshot keep the legacy key-position fallback; set CommandMetadataPreferLive or CommandMetadataConfig.Overrides for full metadata. The default CommandMetadataStatic mode does no network lookup unless resolution reaches an installed NewDynamicResolver. Identity probes have bounded deadlines, and after a failure or invalidation commands use conservative metadata while verification retries in the background.
  • Topology loading prefers CLUSTER SHARDS and falls back to CLUSTER SLOTS, and concurrent reloads share one in-flight load. Keyless routing prefers healthy nodes without excluding every candidate on a temporary local marker. ErrClusterTopologyUnhealthy supports errors.Is, and unknown response policies return an error.
  • FT.CURSOR READ is no longer retried after a lost reply, on standalone and cluster clients, because the server may already have advanced the cursor.
  • A SCAN iterator on a ClusterClient now visits every master. Before, it sent each page to a random node with the cursor of another node and could end early without an error (#4200) by @​ndyakov.
  • With the dynamic resolver, DEL, EXISTS, TOUCH and UNLINK on several keys of one slot returned the per-slot count multiplied by the number of keys in that slot. They now count each slot once (#4141) by @​lazerg.

... (truncated)

Changelog

Sourced from github.com/redis/go-redis/v9's changelog.

9.24.0 (2026-11-24)

This is a minor release. It contains everything from 9.24.0-beta.1 and 9.24.0-beta.2, so these notes cover the full 9.23.0 → 9.24.0 upgrade. The release adds:

  • Redis 8.12 support: set member expiration, ZMOVE, BITRANGEINTARRAY, CF.COMPACT, scalar-quantized HNSW, BLESS and more, tested against Redis 8.12.0.
  • The experimental MultiDB client for Active-Active (Redis Enterprise) failover.
  • Metadata-driven cluster routing and client-side caching (CSC) eligibility that come from the COMMAND metadata.
  • CSC OPT-IN / OPT-OUT tracking modes, CSC on ClusterClient, and CSC with EphemeralConn.
  • A per-client OTelRecorder, MultiDB metrics in redisotel-native, and much less OpenTelemetry cost on the hot path.
  • New full-duplex options (FullDuplexPipes, PipelineMinIdleConns) and a cluster recovery fix for full-duplex sessions.
  • An opt-in idle connection reaper, ACLGetUser, ClusterSlotStats and the Redis 8.10 BACKUP commands.
  • Many fixes for connections, cluster routing, authentication, reply parsing, and the search, JSON and probabilistic commands.

🚀 Highlights

Redis 8.12 support

This release adds the new commands and options of Redis 8.12 and runs its tests against Redis 8.12.0 (#4404).

  • Set member expiration: SExpire, SPExpire, SExpireAt, SPExpireAt (each with WithArgs), STTL, SPTTL, SExpireTime, SPExpireTime, SPersist, SAddEX and SAddEXWithArgs (#4165) by @​ndyakov.
  • Sorted sets and bitmaps: ZMOVE, BZMOVE and ZMOVEMEMBER (#4289), and BITRANGEINTARRAY (#4242) by @​ndyakov.
  • Probabilistic and search: CF.COMPACT as CFCompact (#4243) by @​ndyakov. CELL_SIZE for CMS.INITBYDIM and CMS.INITBYPROB (CMSInitByDimCellSize, CMSInitByProbCellSize) (#4023), and scalar-quantized HNSW indexes in FT.CREATE with the two new FT.INFO fields (#4077) by @​vlady-kotsev. RERANK for FT.HYBRID, the BITRANGEINTARRAY options and the new command metadata (#4277) by @​ndyakov.
  • BLESS: BLESS GET, BLESS SET, BLESS CLEAR and BLESS SCAN for the NO-EVICT flag (#4041) by @​vlady-kotsev. BlessScan is node-local: scan each master of a cluster or ring.

MultiDB client (experimental)

NewMultiDBClient routes commands to one active database out of several standalone or cluster members (e.g. Redis Enterprise Active-Active) and fails over based on circuit breakers, health checks and a weight-based failover strategy, with auto-fallback to higher-weight members. The multidb package adds ping and lag-aware health checks and probe policies. See example/multidb (#3954) by @​ndyakov. Defaults:

  • MultiDB owns retries: CommandRetries (0 = 2, -1 = none) retries on the database active at each attempt, and every attempt is counted by the breaker and failure detector. Standalone members get no retries of their own (MaxRetries 0 becomes -1); an explicit MaxRetries is kept.
  • Health checks: HEALTHY_ALL, 3 probes 500ms apart per check, honoring multidb.WithProbes / WithDelay / WithTimeout; HealthCheckTimeout (3s) caps the pass. Probes that cannot fit it are rejected at construction and by AddDatabase. Under the default policy, SetActiveDatabase and ProbeTargetBeforeFailover use one probe per check.
  • Startup: InitialDBStateMajorityAvailable needs half the members, rounded up (1 of 2). A failed start matches ErrInsufficientHealthyDatabases; with no healthy member it also matches ErrPermanentlyNotAvailable.
  • Weights are in (0, 1] (0 = 1.0); -1 disables a member. The last enabled member cannot be disabled.
  • The default failure detector (1000 failures and 10% within 2s) is set with FailureDetectorConfig, whose fields are used as given; start from DefaultMultiDBFailureDetectorConfig().
  • redisotel-native reports MultiDB events (failover, active database change, circuit breaker state change, health check) in a new multidb metric group, MetricGroupFlagMultiDB, which MetricGroupAll includes (#4007) by @​ndyakov.
  • A member ProcessHook that returns nil without calling next is no longer counted as a healthy database response (#4271), and a local result of a member hook in a cluster pipeline is kept when another node fails (#4279) by @​harshitdeora. Full-duplex outcomes are recorded in the failure window after the active member is selected again (#4283) by @​xixi-box.

Experimental: the MultiDB API can change in a minor release. User hooks and health checks must not call MultiDB control methods or Close.

Metadata-driven cluster routing

Cluster routing and CSC use the same resolved COMMAND record for each command, so flags, key positions and policies cannot drift between two metadata sources (#3960, #4093) by @​ofekshenawa.

  • Existing default routing and the cluster-wide DBSize, ScriptLoad, ScriptFlush and ScriptExists helpers are preserved. Install NewCommandMetadataResolver() or client.NewDynamicResolver() with SetCommandInfoResolver to enable metadata-based fan-out and aggregation. CommandMetadata configuration alone does not enable them. Cross-slot fan-out is not atomic.
  • With metadata routing enabled, cross-slot MGET follows redirects for each affected slot during resharding instead of returning a missing value for a key that moved. Successful slot groups are not replayed, and fan-out replies that contain MOVED or ASK refresh the topology for later commands.
  • Explicit pipelines and transactions keep node-local execution; ordered AsyncAutoPipeline rejects fan-out before dispatch. Automatic fan-out is available through the blocking face or unordered half-duplex mode. SCAN, INFO and known diagnostics stay node-local.
  • Numeric sum/min/max fan-out keeps integer replies as exact int64 results, including raw Do results; integer overflow returns an error. Aggregates with floating-point replies return float64.
  • Resolved command key specifications take precedence over SetFirstKeyPos. Commands missing from the snapshot keep the legacy key-position fallback; set CommandMetadataPreferLive or CommandMetadataConfig.Overrides for full metadata. The default CommandMetadataStatic mode does no network lookup unless resolution reaches an installed NewDynamicResolver. Identity probes have bounded deadlines, and after a failure or invalidation commands use conservative metadata while verification retries in the background.
  • Topology loading prefers CLUSTER SHARDS and falls back to CLUSTER SLOTS, and concurrent reloads share one in-flight load. Keyless routing prefers healthy nodes without excluding every candidate on a temporary local marker. ErrClusterTopologyUnhealthy supports errors.Is, and unknown response policies return an error.
  • FT.CURSOR READ is no longer retried after a lost reply, on standalone and cluster clients, because the server may already have advanced the cursor.
  • A SCAN iterator on a ClusterClient now visits every master. Before, it sent each page to a random node with the cursor of another node and could end early without an error (#4200) by @​ndyakov.

... (truncated)

Commits

Bumps the go-minor-and-patch group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [github.com/golang-migrate/migrate/v4](https://github.com/golang-migrate/migrate) | `4.18.3` | `4.20.1` |
| [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) | `5.11.0` | `5.13.0` |
| [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) | `1.23.2` | `1.25.0` |
| [github.com/redis/go-redis/v9](https://github.com/redis/go-redis) | `9.23.0` | `9.24.0` |
| [golang.org/x/crypto](https://github.com/golang/crypto) | `0.58.0` | `0.59.0` |



Updates `github.com/golang-migrate/migrate/v4` from 4.18.3 to 4.20.1
- [Release notes](https://github.com/golang-migrate/migrate/releases)
- [Commits](golang-migrate/migrate@v4.18.3...v4.20.1)

Updates `github.com/jackc/pgx/v5` from 5.11.0 to 5.13.0
- [Release notes](https://github.com/jackc/pgx/releases)
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](jackc/pgx@v5.11.0...v5.13.0)

Updates `github.com/prometheus/client_golang` from 1.23.2 to 1.25.0
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.25.0/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.23.2...v1.25.0)

Updates `github.com/redis/go-redis/v9` from 9.23.0 to 9.24.0
- [Release notes](https://github.com/redis/go-redis/releases)
- [Changelog](https://github.com/redis/go-redis/blob/master/RELEASE-NOTES.md)
- [Commits](redis/go-redis@v9.23.0...v9.24.0)

Updates `golang.org/x/crypto` from 0.58.0 to 0.59.0
- [Commits](golang/crypto@v0.58.0...v0.59.0)

---
updated-dependencies:
- dependency-name: github.com/golang-migrate/migrate/v4
  dependency-version: 4.20.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-minor-and-patch
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-minor-and-patch
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-minor-and-patch
- dependency-name: github.com/redis/go-redis/v9
  dependency-version: 9.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-minor-and-patch
- dependency-name: golang.org/x/crypto
  dependency-version: 0.59.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-minor-and-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants